home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / demos / 8 / expert.doc < prev    next >
Encoding:
Text File  |  1985-11-19  |  10.1 KB  |  226 lines

  1.  
  2.                          ANTIC PRESENTS
  3.  
  4.                          EXPERT OPINION
  5.                              (demo)
  6.  
  7.                 Copyright 1986 Antic and Mind Soft
  8.  
  9.         EXPERT SYSTEMS -- A SMALL HISTORY AND EXPLANATION
  10.  
  11. When we talk about an 'expert,' we mean an individual who is
  12. widely recognized as being able to solve a particular type of
  13. problem that most other people cannot solve nearly as
  14. efficiently.
  15.  
  16. If you are sick, you will most probably go to see a doctor. After
  17. several questions and different tests, your doctor makes a
  18. diagnosis and presents a treatment. If your car doesn't start you
  19. will certainly call the mechanic to make it start.
  20.  
  21. If you have to pay too much income tax, you will probably ask an
  22. accountant or a tax counselor for advice.
  23.  
  24. All these experts you are consulting are considered persons who
  25. have a large amount of good domain-specific knowledge. As a
  26. result of their experience, they may permit us to efficiently
  27. solve our problems.
  28.  
  29. Today, there exist computer programs called Expert Systems. These
  30. systems are able to behave like human experts in the domains
  31. developed for (medical, electronic, financial, etc...) Expert
  32. systems are among the first important results of Artificial
  33. Intelligence research.
  34.  
  35. Is this the end of the experts?
  36.  
  37. The goal of these programs is not to supplant human experts, but
  38. rather to supplement and to multiply them and to extend their
  39. capabilities by making their knowledge available for a larger
  40. number of persons.
  41.  
  42. Expert systems are composed of a knowledge base that consists of
  43. facts and heuristics about a specific domain, of an inference
  44. engine that contains the inference procedures and the control
  45. strategies and of a base of facts that contains the
  46. specifications of a current problem and the results found by the
  47. expert system. Expert systems are totally based on knowledge and
  48. are characterized by their ease of use and by their possibility
  49. to explain how they find a particular result and why they ask a
  50. question at a specific moment but also by their capacity to give
  51. a well adapted solution on each case.
  52.  
  53. The natural language interface makes expert systems friendly and
  54. powerful and allows to modify and to brush up easily the
  55. knowledge base. The order of which knowledge is entered into the
  56. system does not affect the results. In certain cases, the system
  57. may even find results without any precise description of the
  58. problem.
  59.  
  60.  
  61.                HOW TO USE THE EXPERT OPINION DEMO
  62.  
  63.  
  64. MIND SOFT has created an expert system based on the philosophy
  65. that anyone should be able to become a "knowledge engineer."
  66.  
  67. Our aim is to provide users with a tool that will solve problems
  68. based on choices, diagnosis, identification and, in general,
  69. expertise.
  70.  
  71.                 Demonstration of the ST version.
  72.  
  73. If you have a color monitor, please set it in medium resolution.
  74. You should have four files: EXPERT and BASE (main modules), and 2
  75. knowledge base examples (ANIMALS and TVSET).
  76.  
  77.                              EXPERT
  78.  
  79. This module contains the expert system. Expert Opinion provides 3
  80. modes of inference:
  81.  
  82. - Deduction (forward chaining which goes from
  83.   facts to conclusions)
  84.  
  85. - Verify hypothesis (backward chaining which starts
  86.   from a conclusion and goes to facts)
  87.  
  88. - Expertise (forward and backward chaining at the
  89.   same time)
  90.  
  91. NOTE:  This demo is only capable of displaying a 15-rule
  92. knowledge base.  The real system is capable of a 500 rule base in
  93. a 512K system.  To give you an idea of how large that is,
  94. Stanford University built an expert system called Mycin in the
  95. early '80s that diagnosed infectious diseases.  That knowledge
  96. base had less than 300 rules in it, and it's diagnosis proved to
  97. be more accurate in most situations than a real doctors.  Expert
  98. Opinion is potentially more powerful than Mycin, depending upon
  99. the knowledge put into the base.
  100.  
  101. Double click on EXPERT.PRG to run the program.  Then select, from
  102. the File menu, "Open knowledge base". Open TVSET to activate the
  103. knowledge base related to TV breakdowns. Now it is possible to
  104. use the three modes.
  105.  
  106. 1)  DEDUCTION
  107.  
  108. This mode is to be used when the user is facing a problem for
  109. which he can describe what's going wrong.  Basically, he should
  110. be able to formulate facts (or descriptions).  From those
  111. formulated facts, Expert Opinion will infer deduction.
  112.  
  113. Example:  To formulate facts, select in the Inference Menu: "Add
  114. facts", and type 'NO IMAGE' (on the first line). Then click:
  115. "OK".  Another way to do this is to add facts from a dictionary
  116. automatically generated by BASE (the knowledge base manager).
  117. This has two advantages: the user may refer to existing words and
  118. does not need to use the keyboard (mouse-controlled). For adding
  119. facts from dictionary, select, from Inference Menu: "Add facts by
  120. dictionary". If the fact to be input is 'THE SCREEN IS ON', you
  121. click on 'THE SCREEN' which will appear in the left bottom
  122. corner.  For the next word, click 'IS' and last 'ON'.  The fact
  123. 'THE SCREEN IS ON' is then composed. Click: "Store" and "OK".
  124. Now it is possible to make a deduction.
  125.  
  126. Select "DEDUCE" in the Inference Menu. 1 new fact will appear.  A
  127. deduction was thus made. It is now possible to return to the Base
  128. of facts (Edit Menu) and ask Expert Opinion how this new fact was
  129. deduced. After having selected Base of facts, the base will
  130. appear with 3 facts. You may then select the deduced fact by
  131. clicking on it (it will appear on last line) and then by clicking
  132. 'How ?' Expert Opinion will immediately explain to you how the
  133. fact was deduced by referring to a rule (contained in the
  134. knowledge base).  It is then possible to check the mentioned rule
  135. by selecting: "Display a rule" in the Edit Menu.
  136.  
  137. Important: before leaving the deduction mode, don't forget to
  138. erase the base of facts by clicking "Empty the base of facts" in
  139. Edit Menu.
  140.  
  141. 2) VERIFY HYPOTHESIS
  142.  
  143. To use this mode we will choose another knowledge base.  First,
  144. close the TVSET base by selecting "Close" in File Menu. Then
  145. select: "Open knowledge base" in File Menu and select ANIMALS.
  146. Expert Opinion is now ready to answer questions about animals
  147. (although in this demo, there are only 15 rules instead of the
  148. maximum of 500). This mode is necessary when the user is able to
  149. formulate a hypothesis and wants to reach a specified goal.
  150. Select: "VERIFY a Hypothesis" in the Inference Menu.
  151.  
  152. Example: type 'the animal is an elephant'. Then click OK.
  153. Questions will appear immediatly on the screen. The user may
  154. answer by Yes, No or No Idea if he is not able to make up his
  155. mind. At this stage it is possible to ask Expert Opinion to
  156. explain why he is asking such question.  Try it by clicking on
  157. "Why?". The program will then justify its line of reasoning.
  158. Under the question a 'Why window' will appear with the
  159. explanation. 'Level 2' means that Expert Opinion is obliged to go
  160. through 1 sub-goal to verify the main goal : 'the animal is an
  161. elephant'. The first sub-goal is to prove that the animal is a
  162. mammal.  If you want to discover the second sub-goal, click
  163. "Why?" until you reach level one. Click "OK" to return to the
  164. question. According to the user's answers, Expert Opinion will be
  165. able to verify (or not) the hypothesis. The system accepts up to
  166. 10 sub-goals.
  167.  
  168. Important: a hypothesis must always correspond to the conclusion
  169. of a rule and not to one of the conditions composing the rule
  170. (see BASE). If you need help, click on Assistance when the system
  171. asks to give a hypothesis.
  172.  
  173. 3) EXPERTISE
  174.  
  175. This mode has been designed to allow a user who is not able to
  176. formulate facts or build a hypothesis, but wants a solution to
  177. his problem.  In that case, this mode will do forward and
  178. backward chainings.  That means that it will raise questions and
  179. will also generate new facts whenever possible.  Expert Opinion
  180. will try to deduce facts based on the answers provided by the
  181. user. To operate this mode click Expertise in Inference Menu. A
  182. screen will appear with a maximum of 10 classes.  In fact, when
  183. the expert has created his knowledge base he has been asked to
  184. split his knowledge in classes.  For instance, a motor can have
  185. the following classes: brakes, clutch, electric system,
  186. carburator, ignition, etc.  In this way, the user might be able
  187. to locate his problem in one class to enable Expert Opinion to
  188. ask questions related to that specific class of problem in order
  189. to avoid the user to have to go through the entire knowledge
  190. base.  Expert Opinion will only ask questions concerning the
  191. rules contained in the class you request (unless you ask to be
  192. queried on the entire knowledge base).
  193.  
  194. According to the users answers, Expert Opinion will develop a
  195. base of facts that should help the user to solve his problem.
  196.  
  197. 4) BASE
  198.  
  199. This module allows the user to write the rules which compose the
  200. base of knowledge. A rule is a proposition containing at least
  201. one condition and one conclusion, for instance: 'the animal is a
  202. mammal'.  All the rules can be split into classes.  Each rule can
  203. receive a certainty value, which is an indicative coefficient
  204. attributed to each rule in order to classify rules between
  205. themselves.  This classification is interesting when using the
  206. inference engine because questions always begin with the highest
  207. certainties.  The solution is a zone for special comments,
  208. warnings and solutions.
  209.  
  210. The first thing to do when creating a knowledge base is to name
  211. your base (click "Create a new base" in File Menu). A mask will
  212. appear that has to be filled in by the expert. Each time the
  213. expert has finished writing one rule he must click Store or Quit.
  214. In the demo version of Expert Opinion, the BASE MANAGER is not
  215. capable of actually writing a working knowledge base to disk  (we
  216. have to save something for the product, right?) Take a look
  217. through the commands of the Menu Bar and you will see the way the
  218. BASE MANAGER works.  The Menu Facilities is very handly to
  219. provide the user with information concerning the meaning of each
  220. command.
  221.  
  222. EXPERT OPINION WILL BE RELEASED MAY 1, 1986.  WE INVITE YOU TO...
  223.  
  224.                 JOIN THE KNOWLEDGE ENGINEERS!
  225.  
  226. əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə